**
** For explicit repeats or implicit matrix broadcasting.
**
class RepMat: ViewMat {

	override Obj? get(Obj coords) {
		1
	}

	override Int[] shape {
		private set {
			// We always want a fixed shape.
			// Even if we support reshape later, either make new Mats or update the shape field.
			// Making this immutable allows avoiding cloning it on exposure.
			*shape = val.toImmutable
		}
	}

	override Void validateObj(Mat proposed) {
		// TODO The mat still needs to be broadcastable to the same target shape.
	}

}
